# FROM java:8
FROM maven:3.5.4-jdk-8
MAINTAINER docker_maven docker_maven@email.com
WORKDIR /opt

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
ENV LANG C.UTF-8
ARG JAR_FILE
COPY ${JAR_FILE} /opt/app.jar
ENTRYPOINT ["java", "-jar", "/opt/app.jar"]
EXPOSE 8081